package net.guerlab.ucenter.client.entity;

import java.io.Serializable;

public class Config implements Serializable {

    private static final long serialVersionUID = 1L;
    
    public static final String CLIENT_VERSION = "1.0";
    
    public static final String CLIENT_RELEASE = "20160731";

    private String appId;

    private String key;

    private String api;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getApi() {
        return api;
    }

    public void setApi(String api) {
        this.api = api;
    }

    @Override
    public String toString() {
        return "Config [appId=" + appId + ", key=" + key + ", api=" + api + "]";
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((appId == null) ? 0 : appId.hashCode());
        return result;
    }

    @Override
    public boolean equals(Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null) {
            return false;
        }
        if (!(obj instanceof Config)) {
            return false;
        }
        Config other = (Config) obj;
        if (appId == null) {
            if (other.appId != null) {
                return false;
            }
        } else if (!appId.equals(other.appId)) {
            return false;
        }
        return true;
    }

}
